/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lucava.boatskeeper.server.handler.user;

import net.customware.gwt.dispatch.server.ActionHandler;
import net.customware.gwt.dispatch.server.ExecutionContext;
import net.customware.gwt.dispatch.shared.ActionException;
import org.lucava.boatskeeper.shared.rpc.user.ConnectUser;
import org.lucava.boatskeeper.shared.rpc.user.ConnectUserResult;

/**
 *
 * @author glenn
 */
public class ConnectUserHandler implements ActionHandler<ConnectUser, ConnectUserResult> {

    @Override
    public Class<ConnectUser> getActionType() {
        return ConnectUser.class;
    }

    @Override
    public ConnectUserResult execute(ConnectUser a, ExecutionContext ec) throws ActionException {
        return new ConnectUserResult(true);
    }

    @Override
    public void rollback(ConnectUser a, ConnectUserResult r, ExecutionContext ec) throws ActionException {
    }
}
